// 封装分类相关的接口
import request from '@/utils/request'

// 获取分类数据
export const getCategoryAPI = (id) => {
    return request.get('/category', { params: {id}})
}

// 获取二级分类数据
export const getSubCategoryAPI = (id) => {
    return request.get('/category/sub/filter', { params: {id}})
}

// 获取商品列表数据
export const getCategoryGoodsAPI = (data) => {
    return request.post('/category/goods/temporary', data)
}
